package cn.epsilon3.domain.e3.dto.add;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description 新增Url数据
 *
 * @author: epsilon3
 * @date: 2023/12/15 16:25
 */
@Data
public class E3UrlAdd implements Serializable {

    private static final long serialVersionUID = 5798113894655782485L;

    /**
     * url名称
     */
    @NotBlank(message = "url名称不能为空")
    @ApiModelProperty(value = "url名称",required = true)
    private String urlName;

    /**
     * url
     */
    @NotBlank(message = "url路径不能为空")
    @ApiModelProperty(value = "url",required = true)
    private String url;

    /**
     * 类型 1系统接口 2三方接口
     */
    @Min(value = 1, message = "url类型错误")
    @Max(value = 2, message = "url类型错误")
    @ApiModelProperty(value = "类型 1系统接口 2三方接口",required = true)
    private Integer type;
}
